import request from '@/utils/request'

export function getRankMemberByLevel(params) {
  return request({
    url: process.env.RANK_API + '/index/getRankMemberByLevel',
    method: 'get',
    params
  })
}

export function getNewRankMember(params) {
  return request({
    url: process.env.RANK_API + '/index/getNewRankMember',
    method: 'post',
    data: params
  })
}

export function getRankMemberByTime(params) {
  return request({
    url: process.env.RANK_API + '/index/getRankMemberByTime',
    method: 'get',
    params
  })
}

export function getHotRankMember(params) {
  return request({
    url: process.env.RANK_API + '/index/getHotRankMember',
    method: 'get',
    params
  })
}

export function getHotTag(params) {
  return request({
    url: process.env.RANK_API + '/index/getHotTag',
    method: 'get',
    params
  })
}

export function getHotRank(params) {
  return request({
    url: process.env.RANK_API + '/index/getHotRank',
    method: 'get',
    params
  })
}

export function getLink(params) {
  return request({
    url: process.env.RANK_API + '/index/getLink',
    method: 'get',
    params
  })
}

export function addLinkCount(params) {
  return request({
    url: process.env.ADMIN_API + '/index/addLinkCount',
    method: 'get',
    params
  })
}

export function getWebConfig(params) {
  return request({
    url: process.env.ADMIN_API + '/index/getWebConfig',
    method: 'get',
    params
  })
}

export function getWebNavbar(params) {
  return request({
    url: process.env.ADMIN_API + '/index/getWebNavbar',
    method: 'get',
    params
  })
}

export function recorderVisitPage(params) {
  return request({
    url: process.env.ADMIN_API + '/index/recorderVisitPage',
    method: 'get',
    params
  })
}

export function recorderBehavior(params) {
  return request({
    url: process.env.RANK_API + '/index/recorderBehavior',
    method: 'post',
    data: params
  })
}

export function getUserTopN(params) {
  return request({
    url: process.env.USER_API + '/index/getUserTopN',
    method: 'post',
    data: params
  })
}

export function getVersionParams(params) {
  return request({
    url: process.env.ADMIN_API + '/index/getVersionParams',
    method: 'get',
    params
  })
}
